<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视差滚动</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            height: 400px;
            position: relative;
            perspective: 1px;
            transform-style: preserve-3d;
            overflow: auto;
            overflow-x: hidden;
        }

        .curtain {
            transform: translate3d(0, 0, -1px) scale(2);
            vertical-align: middle;
        }

        .comehere {
            transform: translate3d(0, 0, -2px) scale(2.2);
            height: 150px;
            width: 150px;
            position: relative;
            left: 50%;
            top: 50%;
        }
    </style>
</head>

<body>

    <div class="box">
        <img src="http://img.blog.csdn.net/20160714170115893" alt="" class="curtain">
        <img class="comehere" src="http://img.blog.csdn.net/20160714114130582" alt="">
    </div>
</body>

</html>